package com.taru.service.impl;

import com.taru.dao.FruitMapper;
import com.taru.model.Fruits;
import com.taru.service.FruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FruitServiceImpl implements FruitService {
    @Autowired
    FruitMapper fruitMapper;
    @Override
    public int insertFruits(Fruits fruits) {
        return fruitMapper.insertFruits(fruits);
    }

    @Override
    public int updateFruitsById(Fruits fruits) {
        return fruitMapper.updateFruitsById(fruits);
    }

    @Override
    public int deleteFruitsById(String fruitsId) {
        return fruitMapper.deleteFruitsById(fruitsId);
    }

    @Override
    public Fruits queryFruitsById(String fruitsId) {
        return fruitMapper.queryFruitsById(fruitsId);
    }
}
